package javaapplication;

public class XPlancheRechercherVille extends XPlanche {
    
    public XPlancheRechercherVille () {
        super();
    }
    
    protected void initComponents () {
        
        XItemPlancheTexte jPanel1 = new XItemPlancheTexte(
                "Rechercher une ville"
                );
        XItemPlancheBouton jPanel2 = new XItemPlancheBoutonMenu(
                "Cibler", 
                XPlancheMenuPrincipalConducteur.getCmdInstance()
                );
        XItemPlancheBouton jPanel3 = new XItemPlancheBoutonMenu(
                "Retour au menu principal", 
                XPlancheMenuPrincipalConducteur.getCmdInstance()
                );
        
        addItemPlanche(jPanel1);
        addItemPlanche(jPanel2);
        addSeparator();
        addItemPlanche(jPanel3);
        
    }
    
    
    
    
    
    private static XPlancheRechercherVille instance;
    private static CmdInstanciation cmdInstance;
    
    public static XPlancheRechercherVille getInstance () {
        if (instance == null) {
            return instance = new XPlancheRechercherVille();
        } else {
            return instance;
        }
    }
    
    public static XPlancheRechercherVille.CmdInstanciation getCmdInstance () {
        if (cmdInstance == null) {
            return cmdInstance = new XPlancheRechercherVille.CmdInstanciation();
        } else {
            return cmdInstance;
        }
    }
    
    private static class CmdInstanciation extends XPlanche.CmdInstanciation { 
        public XPlanche getInstance () {
            return XPlancheRechercherVille.getInstance();
        }
    }
    
}
